
pkgname=nettle
pkgver=3.4
pkgrel=1
pkgdesc="Nettle - a low-level cryptographic library."
arch=('x86_64')
url="http://www.lysator.liu.se/~nisse/nettle/"
license=('GPL')
depends=('gmp')
source=("https://ftp.gnu.org/gnu/nettle/${pkgname}-${pkgver}.tar.gz")
md5sums=('dc0f13028264992f58e67b4e8915f53d')

build() {
  cd ${pkgname}-${pkgver}
  
  ./configure --prefix=/usr --libdir=/usr/lib --enable-shared
  make
}

check() {
  cd ${pkgname}-${pkgver}
  
  make -k check
}

package() {
  cd ${pkgname}-${pkgver}
  
  make DESTDIR=${pkgdir} install
}
